
package system.base;

import framework.core.*;

/*
	Author    :Sindy
	CreateTime:2008-01-31 13:31:10
*/
public class SysConfigSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_name = "" ; // all

	private String m_val = "" ; // all

	private String m_remark = "" ; // all
		

public SysConfigSearchEvent() 
{
	super();
	
	setOrderField(SysConfig.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public String getVal()
	{
		return m_val ;
	}
	public void setVal(String v)
	{
		m_val = v;
	}

	public String getRemark()
	{
		return m_remark ;
	}
	public void setRemark(String v)
	{
		m_remark = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewVal() throws Exception
	{
		return Value.view(getVal());
	}

	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(SysConfig.ID,getId()));

	c.add(getCondition(SysConfig.NAME,getName()));

	c.add(getCondition(SysConfig.VAL,getVal()));

	c.add(getCondition(SysConfig.REMARK,getRemark()));
		

			
		return c ;
	}
	
//add by Sindy start

//add by Sindy end
}
